<html>
    <head>
        <script src="../../modules.js"></script>
        <script>require('environment.js').setDebug();</script>
    </head>
    <body>
        <script type="text/javascript" language="javascript">
        var test = require('test.js'); with (test) {
        test.listenReady(function () {

        var module = requireRelative('RequireError.js');
        var RequireError = require('modules.js').RequireError;

        assert(
            isInstance(module.requireException, RequireError),
            'require("bogus") should throw a RequireError.'
        );

        }); /* listen ready */
        }; /* with test */
        </script>
    </body>
</html>
